package com.bestv.search.engine.analyzer;

import org.apache.lucene.analysis.Analyzer;
import org.apache.lucene.analysis.TokenStream;

import java.io.Reader;

/**
 * @author Michael Wang.
 */
public class SuggestionAnalyzer extends Analyzer {

    public TokenStream tokenStream(String fieldName, Reader reader) {
        return new SuggestionTokenizer(reader);
    }
}
